package com.bdzl.pub.entity.loan;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;



/**
 * 融资租赁订单表
 *
 * @author yangyicai
 * @email yangyicai@foxmail.com
 * @date 2021-05-11 15:23:42
 */
@Data
public class OrderDO implements Serializable {
	private static final long serialVersionUID = 1L;

	//订单单号,主键
	private String odrNo;
	//所属组织机构
	private String odrOrg;
	//订单类型
/*Mortgage：抵押贷款；
Lease：租赁*/
	private String odrType;
	//客户编号,外键
	private Integer odrCust;
	//是否零息，Y：零息，N：非零息
	private String odrZeroFlag;
	//业务类型[中车] 或 [光大]
	private String odrBizType;
	//合同号
	private String odrContractNo;
	//产品政策
	private String odrPro;
	//业务区域信息
	private String odrArea;
	//区域经理/负责人
	private String odrAreaManager;
	//经销商
	private String odrAgent;
	//业务经理
	private String odrSalesman;
	//申请时间（即补充资料时间）
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd")
	private Date odrApplyTime;
	//报价单填报时间
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd")
	private Date odrOfferTime;
	//客户融资金额(单台融资金额)
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrLoanCust = BigDecimal.ZERO;
	//实际贷款金额
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrLoanFact = BigDecimal.ZERO;
	//系统融资金额（系统融资总额）
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrLoanSys = BigDecimal.ZERO;
	//抵押费（单台抵押费）
	private BigDecimal odrMortgageFee = BigDecimal.ZERO;
	//抵押时间
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd")
	private Date odrMortgageDate;
	//总费率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrTotalRate = BigDecimal.ZERO;
	//保底费率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrMinRate = BigDecimal.ZERO;
	//奖金比率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrBonusRate = BigDecimal.ZERO;
	//奖金金额
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrBonusMoney = BigDecimal.ZERO;
	//返利率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrReturnRate = BigDecimal.ZERO;
	//经销商返佣金额
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrReturnMoney = BigDecimal.ZERO;
	//融资期限
	private Integer odrIssue;
	//月息
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrMonInterest = BigDecimal.ZERO;
	//加息
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrAddInterest = BigDecimal.ZERO;
	//月租
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrMonthRepay = BigDecimal.ZERO;
	//首付比率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrFirstRate = BigDecimal.ZERO;
	//首付金额
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrFirstMoney = BigDecimal.ZERO;
	//系统首付比率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrFirstSysRate = BigDecimal.ZERO;
	//系统首付金额
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrFirstSysMoney = BigDecimal.ZERO;
	//客户超额贴息
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrSubsidyCust = BigDecimal.ZERO;
	//厂家超额贴息（财务录入）
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrSubsidyFac = BigDecimal.ZERO;
	//息差返还（财务录入）
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrInstSpread = BigDecimal.ZERO;
	//融资利率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrLoanRate = BigDecimal.ZERO;
	//产品利率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrProRate = BigDecimal.ZERO;
	//服务费
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrServiceCharge = BigDecimal.ZERO;
	//公司利润
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrProfitMoney = BigDecimal.ZERO;
	//打款用途
/*carpay：车款；
comm：佣金；
rebate：回扣，奖金；
mortgage：抵押
多个用途，用“,”隔开*/
	private String odrPayItem;
	//打款金额
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrPayMoney = BigDecimal.ZERO;
	//毛利率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrGrossRate = BigDecimal.ZERO;
	//利润率
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private BigDecimal odrProfitRate = BigDecimal.ZERO;
	//调查表备注
	private String odrInvRemark;
	//报价单备注
	private String odrOfferRemark;
	//当前订单状态的值，唯一
	private String odrState;
	//回款状态，0：未回款；1 已回款
	private Integer odrReturnStatus;
	//回款确认人
	private String odrReturnUser;
	//回款日期
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date odrReturnDate;
	//报件人编号,外键
	private Integer odrCreator;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date odrCretime;
	//最近修改人用户 ID，外键

	private Integer odrModuser;
	//最近修改时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date odrModtime;
}
